<!-- $Id: order_info.htm 15544 2009-01-09 01:54:28Z zblikai $ -->

{include file="pageheader.htm"}
{insert_scripts files="topbar.js,../js/utils.js,listtable.js,selectzone.js,../js/common.js"}
<div class="list-div" style="margin-bottom: 5px">
<table width="100%" cellpadding="3" cellspacing="1">
  <tr>
    <th colspan="4">{$lang.old_order_info}</th>
  </tr>
  <tr>
      <td width="18%"><div align="right"><strong>{$lang.label_order_sn}</strong></div></td>
      <td width="34%">{$back_order.order_sn}{if $back_order.extension_code eq "group_buy"}<a href="group_buy.php?act=edit&id={$back_order.extension_id}">{$lang.group_buy}</a>{elseif $back_order.extension_code eq "exchange_goods"}<a href="exchange_goods.php?act=edit&id={$back_order.extension_id}">{$lang.exchange_goods}</a>{/if}</td>
      <td><div align="right"><strong>{$lang.label_order_time}</strong></div></td>
      <td>{$back_order.formated_add_time}</td>

  </tr>
  <tr>
      <td><div align="right"><strong>{$lang.service_type}</strong></div></td>
      <td><!--{if $back_order.service_type eq 1}-->{$lang.return}
          <!--{elseif $back_order.service_type eq 2}-->{$lang.change}
          <!--{elseif $back_order.service_type eq 3}-->{$lang.fix}
          <!--{/if}--></td>
      <td><div align="right"><strong>{$lang.label_handle_refund}</strong></div></td>
      <td>{$back_order.refund_way}</td>
  </tr>
  <tr>
    <td><div align="right"><strong>{$lang.label_user_name}</strong></div></td>
    <td>{$user_name|default:$lang.anonymous}</td>
    <td><div align="right"><strong>{$lang.label_how_oos}</strong></div></td>
    <td>{$order.how_oos}</td>
  </tr>
  <tr>
    <td><div align="right"><strong>{$lang.label_shipping}</strong></div></td>
    <td>{if $back_order.is_real eq 1}{if $order.shipping_id > 0}{$order.shipping_name}{else}{$lang.require_field}{/if}{/if}</td>
    <td><div align="right"><strong>{$lang.label_shipping_fee}</strong></div></td>
    <td>{$order.formated_shipping_fee}</td>
  </tr>
  <tr>
    <td><div align="right"><strong>{$lang.label_insure_yn}</strong></div></td>
    <td>{if $insure_yn}{$lang.yes}{else}{$lang.no}{/if}</td>
    <td><div align="right"><strong>{$lang.label_insure_fee}</strong></div></td>
    <td>{$order.formated_insure_fee|default:0.00}</td>
  </tr>
  <tr>
    <td><div align="right"><strong>{$lang.delivery_sn_number}</strong></div></td>
    <td>{$back_order.delivery_sn}</td>
    <td><div align="right"><strong>{$lang.label_shipping_time}</strong></div></td>
        <td>{$order.formated_shipping_time}</td>
  </tr>

  <tr>
    <th colspan="4">{$lang.back_order_info}</th>
  </tr>
  <tr>
    <td><div align="right"><strong>{$lang.apply_back_time}</strong></div></td>
    <td>{$back_order.formated_update_time}</td>
    <td><div align="right"><strong>{$lang.apply_name}</strong></div></td>
    <td>{$user_name|default:$lang.anonymous}</td>
</tr>
  <tr>
    <td><div align="right"><strong>{$lang.back_consignee}</strong></div></td>
    <td>{$back_order.consignee|escape}</td>
    <td><div align="right"><strong>{$lang.label_email}</strong></div></td>
    <td>{$back_order.email}</td>
  </tr>
  <tr>
    <td><div align="right"><strong>{$lang.back_address}</strong></div></td>
    <td>[{$back_order.region}] {$back_order.address|escape}</td>
    <td><div align="right"><strong>{$lang.connect_way}</strong></div></td>
    <td>{$lang.label_tel}{$back_order.tel } {$lang.label_mobile}{$back_order.mobile|escape}</td>
  </tr>
  <tr>
    <td><div align="right"><strong>{$lang.express_co}</strong></div></td>
    <td>{$back_order.shipping_name}</td>
    <td><div align="right"><strong>{$lang.label_zipcode}</strong></div></td>
    <td>{$back_order.zipcode|escape}</td>
  </tr>
  <tr>
    <td><div align="right"><strong>{$lang.express_sn}</strong></div></td>
    <td>{$back_order.invoice_no}</td>
    <td><div align="right"><strong>{$lang.back_reason}</strong></div></td>
    <td>{$back_order.problem_desc}</td>
  </tr>
  <tr>
    <td><div align="right"><strong>{$lang.back_images}</strong></div></td>
  <td colspan="3">
      <!--{foreach from=$back_img item=b_img}-->
      <img src="../{$b_img.img_url}" height="80px" />
      <!--{/foreach}-->
  </td>
  </tr>
  <tr>
     <th colspan="4">{$lang.label_postscript}</th>
  </tr>
</table>
  <form action="order.php" method="post"  enctype="multipart/form-data">
      <table width="100%" cellpadding="3" cellspacing="1">
      <!--{if $back_comment}-->
      <!--{foreach from=$back_comment item=comment}-->
  <tr>
    <td><div align="right"><strong>({$comment.add_time})  <!--{if $comment.user_type eq 1}-->{$lang.customer}<!--{else}-->{$lang.service_man}<!--{/if}--></strong></div></td>
    <td colspan="3"><div align="left">{$comment.content}</div></td>
  </tr>
      <!--{/foreach}-->
      <!--{/if}-->
  <tr>
    <td></td>
    <td colspan="3"><div align="left"><textarea cols="65" rows="3" id="msg" name="reply"></textarea> <font color="red">*</font></div></td>
  </tr>
  <tr>
      <td></td>
    <td colspan="3">
        <div align="left"><input type="submit" value="回复" name="word"></div>
        <input type="hidden" name="back_id" value="{$back_order.back_id}"/>
        <input type="hidden" name="act" value="reply_post" />
    </td>
  </tr>
</table>
  </form>


</div>

<div class="list-div" style="margin-bottom: 5px">

        <table width="100%" cellpadding="3" cellspacing="1">
          <tr>
            <th colspan="7" scope="col">{$lang.old_goods_info}</th>
          </tr>
          <tr>
            <td scope="col"><div align="center"><strong>{$lang.goods_name_brand}</strong></div></td>
            <td scope="col"><div align="center"><strong>{$lang.goods_sn}</strong></div></td>
            <td scope="col"><div align="center"><strong>{$lang.product_sn}</strong></div></td>
            <td scope="col"><div align="center"><strong>{$lang.goods_attr}</strong></div></td>
            <td scope="col" colspan="3"><div align="center"><strong>{$lang.label_send_number}</strong></div></td>
          </tr>
          <tr>
            <td><div align="center">
            <a href="../goods.php?id={$goods.goods_id}" target="_blank">{$back_order.goods_name} {if $back_order.brand_name}[ {$back_order.brand_name} ]{/if}
            </a></div></td>
            <td><div align="center">{$back_order.goods_sn}</div></td>
            <td><div align="center">{$back_order.product_sn}</div></td>
            <td><div align="center">{$back_order.goods_attr|nl2br}</div></td>
            <td colspan="3"><div align="center">{$back_order.send_number}</div></td>
          </tr>

          <tr>
            <th colspan="7" scope="col">{$lang.back_goods_info}</th>
          </tr>
            <tr>
                <td scope="col"><div align="center"><strong>{$lang.goods_name_brand}</strong></div></td>
                <td scope="col"><div align="center"><strong>{$lang.goods_sn}</strong></div></td>
                <td scope="col"><div align="center"><strong>{$lang.product_sn}</strong></div></td>
                <td scope="col"><div align="center"><strong>{$lang.goods_attr}</strong></div></td>
                <td scope="col"><div align="center"><strong>{$lang.service_type}</strong></div></td>
                <td scope="col"><div align="center"><strong>{$lang.label_money_refund}</strong></div></td>
                <td scope="col"><div align="center"><strong>{$lang.label_back_number}</strong></div></td>
            </tr>
            <tr>
                <td><div align="center">
                    <a href="../goods.php?id={$goods.goods_id}" target="_blank">{$back_order.goods_name} {if $back_order.brand_name}[ {$back_order.brand_name} ]{/if}
                </a></div></td>
                <td><div align="center">{$back_order.goods_sn}</div></td>
                <td><div align="center">{$back_order.product_sn}</div></td>
                <td><div align="center">
                    <!--{if $back_order.service_type eq 1}-->{$back_order.goods_attr|nl2br}
                    <!--{elseif $back_order.service_type eq 2}-->{$back_order.huan_goods_attr|nl2br}
                    <!--{elseif $back_order.service_type eq 3}-->{$back_order.goods_attr|nl2br}
                    <!--{/if}--></div></td>
                <td><div align="center"><!--{if $back_order.service_type eq 1}-->{$lang.return}
                    <!--{elseif $back_order.service_type eq 2}-->{$lang.change}
                    <!--{elseif $back_order.service_type eq 3}-->{$lang.fix}
                    <!--{/if}-->
                </div></td>
                <td><div align="center">{$back_order.formated_goods_price}</div></td>
                <td><div align="center">{$back_order.back_number}</div></td>
            </tr>
        </table>

</div>

<div class="list-div" style="margin-bottom: 5px">
    <form action="order.php?act=back_operate" method="post" name="theForm">
        <table cellpadding="3" cellspacing="1">
          <tr>
            <th colspan="6">{$lang.action_info}</th>
          </tr>
          <tr>
            <td><div align="right"><strong>{$lang.label_action_note}</strong></div></td>
            <td colspan="5"><textarea name="action_note" cols="80" rows="3"></textarea></td>
          </tr>
            <tr>
                <td><div align="right"></div>
                    <div align="right"><strong>{$lang.label_operable_act}</strong> </div></td>
                <td colspan="5">
                    <!--用户申请退货-->
                    {if $back_order.service_type eq 1}
                        <!--已收到-->
                        {if $operable_list.had_receive}
                        <input name="confirm" type="submit" value="{$lang.receive_confirmed}" class="button" />
                        {/if}
                        <!--去退款-->
                        {if $operable_list.refund}
                        <input name="go_refund" type="submit" value="{$lang.go_refund}" class="button" />
                        {/if}
                        <!--完成-->
                        {if $operable_list.accomplish}
                        <input name="accomplish" type="submit" class="button" value="{$lang.accomplish}" />
                        {/if}
                        <!--售后-->
                        {if $operable_list.after_service}
                        <input name="op_after_service" type="submit" value="{$lang.op_after_service}" class="button" />
                        {/if}
                    {/if}
                    <!--用户申请换货或维修-->
                    {if $back_order.service_type eq 2 || $back_order.service_type eq 3}
                        <!--已收到-->
                        {if $operable_list.had_receive}
                        <input name="confirm" type="submit" value="{$lang.receive_confirmed}" class="button" />
                        {/if}
                        <!--去寄出-->
                        {if $operable_list.to_post}
                        <input name="to_post" type="submit" value="{$lang.to_post}" class="button" />
                        {/if}
                        <!--完成-->
                        {if $operable_list.accomplish}
                        <input name="accomplish" type="submit" class="button" value="{$lang.accomplish}" />
                        {/if}
                        <!--售后-->
                        {if $operable_list.after_service}
                        <input name="after_service" type="submit" value="{$lang.op_after_service}" class="button" />
                        {/if}
                    {/if}

                    <input name="order_id" type="hidden" value="{$back_order.order_id}">
                    <input name="back_id" type="hidden" value="{$back_order.back_id}">
                    <input name="goods_id" type="hidden" value="{$back_order.goods_id}">

                    </td>
            </tr>

            <tr>
                <th>{$lang.action_user}</th>
                <th>{$lang.action_time}</th>
                <th>{$lang.back_status}</th>
                <th>{$lang.back_money_status}</th>
                <th>{$lang.action_note}</th>
            </tr>
            <!--{foreach from=$action_list item=log}-->
            <tr>
                <td><div align="center">{$log.action_user}</div></td>
                <td><div align="center">{$log.action_time}</div></td>
                <td><div align="center">{$log.back_status}</div></td>
                <td><div align="center"><!--{if $log.status eq 1}-->{$lang.back_money}<!--{else}-->{$lang.no_back_money}<!--{/if}--></div></td>
                <td>{$log.action_note|nl2br}</td>
            </tr>
            <!--{/foreach}-->
        </table>
    </form>
</div>

{literal}
<script language="JavaScript">
{/literal}
  var oldAgencyId = {$back_order.agency_id|default:0};
{literal}
  onload = function()
  {
    // 开始检查订单
    startCheckOrder();
  }

</script>
{/literal}

{include file="pagefooter.htm"}